Basic parameters
Basic parameters are mostly of numeric types, Boolean types, or option types
- Numeric type: integer or decimal values for parameters such as uplink power percentage, protection threshold, etc
- Boolean type: binary values for parameters such as anti-backflow switch
- Option type: such as device safety regulation options, battery options, etc,
- The option types are documented in the appendix for reference
✨ For Example
Taking safety regulations as an example, please move on to more cases -> API Sandbox
Parameter settings
Parameter settings request
curl --location -g '{{EU}}/cmd/set' \
--header 'Token: {{TOKEN}}' \
--data '{
"deviceSn": "A112200162230146",
"sendSettingItemList": [
{
"settingCode": "safetycountry",
"value": "26"
}
]
}'
settings response
{
"errorCode": 0,
"info": null,
"body": "65784c2e5535a66fd789eee6",
"successful": true
}
Check the result of the parameter setting
The polling query result of the according response issued is valid within one minute. If the issuance is still not successful in over one minute, it is considered as a failed distribution.
Check request
curl --location -g '{{EU}}/cmd/checkControlResult?recordId=65784c2e5535a66fd789eee6' \
--header 'Token: {{TOKEN}}'
Check response
{
"errorCode": 0,
"info": null,
"body": {
"safetycountry": {
"controlResult": true,
"currentValue": "10"
}
},
"successful": true
}